package com.onlinevideo.dao;


import com.onlinevideo.entity.VideoItem;

import java.util.List;

public interface VideoItemDao {
    int insert(VideoItem videoItem);

    int delete(Long id);

    int deleteByVideoId(Long videoId);

    int update(VideoItem videoItem);

    int update(String name, Integer sortCount,Long id);

    VideoItem queryById(Long id);

    List<VideoItem> queryAll();

    List<VideoItem> queryByVideo(Long id);

}
